﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using Hxsoft.AppV1.Module;

namespace Hxsoft.AppV1.WebUI
{
	/// <summary>
	/// Repeater列表基类。
	/// </summary>
	public abstract class BaseRepeaterList : BaseList
	{
		/// <summary>
		/// Repeater列表。
		/// </summary>
		protected Repeater CtrList;

		protected override void OnInit(EventArgs e)
		{
			CtrList.DataBinding += new EventHandler(CtrList_DataBinding);
			base.OnInit(e);
		}

		public virtual void ReBindData()
		{
			this.DataBind();
		}

		protected virtual void CtrList_DataBinding(object sender, EventArgs e)
		{
			CtrList.DataSource = GetListData();
		}
	}
}